package projectManagement;

import java.text.SimpleDateFormat;
import java.io.*;

public class DiscussionMessage implements Message, Serializable{
	
	private static final long serialVersionUID = 1L;
	private String author;
	private String avatar;
	private String message;
	private String time;
	private int messageLength;
	
	
	public DiscussionMessage(String author, String avatar, String message, String time, int messageLength){
		this.author = author;
		this.avatar = avatar;
		this.message = message;
		this.time = time;
		this.messageLength = messageLength;
	}


	public String getAuthor() {
		return author;
	}
	
	public String getAvatar() {
		return avatar;
	}

	public String getDate(){
		return time;
	}

	public String getMsg() {
		return message;
	}

	public int getType() {
		return Message.discussionKey;
	}
	
	public int getMessageLength(){
		return this.messageLength;
	}


}
